package com.jiong.ad.controller;

import com.jiong.ad.service.IAdCategoryService;
import com.jiong.common.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 广告分类表 前端控制器
 * </p>
 *
 * @author jiong
 * @since 2025-01-16
 */
@RestController
@RequestMapping("/adCategory")
public class AdCategoryController {
    @Autowired
    IAdCategoryService adCategoryService;

    @GetMapping("/list")
    public R list() {
        return R.ok().data("list", adCategoryService.list());
    }
}
